﻿using System;
using System.Xml.Linq;

namespace xycn.IPluginFactory
{
    public abstract class IPluginFactory
    {
        /// <summary>
        /// 用于传递数据库相关配置项
        /// </summary>
        public XElement pluginConfig = null;

        /// <summary>
        /// 插件名称，用于框架查找指定插件类工厂，将创建插件对象
        /// </summary>
        public string pluginName = "";

        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public abstract object CreatePlugin();
    }
}
